package Practice.Practice_01;

public class demo06 {
    public static void main(String[] args) {
        int x = 1;
        while(x <= 4){
            System.out.println("x=" + x);
            x++;
        }
        int sum = 0;
        for(int i = 1; i <= 4; i++){
            sum += i;
            System.out.println("sum=" + sum);
        }
        int i,j;
        for(i = 1; i <= 9; i++){
            for(j = 1; j <= i; j++){
                System.out.print("*");
            }
            System.out.print("\n");
        }
    }
}
